<?php 

include '../utils/stock.php';
include '../utils/evaluator.php';
require('../utils/fpdf17/fpdf.php');
session_start() ;
?>
<html>
<head>
<style type="text/css">
body
{

font-family:"Calibri";}
}
</style>
</head>
<body>

<b>BRIKS INTRINSIC VALUE</b>
<br>

<br>


<?php

$eval = new Evaluator;
echo "Bookvalue: ".$_POST['bv']."<br>";
echo "Bookvalue growth: ".$_POST['bvg']."<br>";
echo "Federal note: ".$_POST['fed']."<br>";
echo "Dividend: ".$_POST['div']."<br>";

echo "<br>";
$iv = round($eval->getIntrinsicValuep($_POST['bv'], $_POST['bvg'], $_POST['fed'], $_POST['div']),2);
echo "<b>Intrinsic value: ".$iv."</b>";

?>
<br>
<br>
<button type="button" onclick="location.href='index.php'">Back</button>


</body>
</html> 